javascript interview question on array

visit shbcf.ru